package notes;

import java.util.Arrays;

/**
 * Description:
 *
 * @Author cowen
 * @Create 2023/10/19 15:55
 * @Version 1.0
 */
class ArrayUtils{
    public static void main(String[] args) {
        // equals
        int[] num1 = {1,2,3};
        int[] num2 = {1,2,3};
        boolean isequals = Arrays.equals(num1,num2);
        System.out.println(isequals);
        // toString
        System.out.println(Arrays.toString(num1));
        // fill
        Arrays.fill(num2,100);
        System.out.println(Arrays.toString(num2));
        // sort
        int[] num3 = {1,5,0,55,3};
        Arrays.sort(num3);
        System.out.println(Arrays.toString(num3));
    }
}
